import variables from '@/styles/variables.module.scss'

const getters = {
    token: state => state.user.token,
    userInfo: state => state.user.userInfo,
    sidebarOpened: state => state.app.sidebarOpened,
    cssVar: state => variables,//快捷访问，与上面的两个不一样
    tagsViewList: state =>state.app.tagsViewList,

    hasUserInfo: state => {
        return JSON.stringify(state.user.userInfo) !== '{}'
    }
}

export default getters